<? if ($this->pageCount): ?>
<? $queryString = $_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : '' ?>
<div class="paginationControl">
<!-- Previous page link -->
<? if (isset($this->previous)): ?>
  <a href="<?=$this->url(array('page' => $this->previous)) . $queryString ?>">
    &lt; Previous
  </a> |
<? else: ?>
  <span class="disabled">&lt; Previous</span> |
<? endif; ?>

<!-- Numbered page links -->
<? foreach ($this->pagesInRange as $page): ?>
  <? if ($page != $this->current): ?>
    <a href="<?=$this->url(array('page' => $page)) . $queryString ?>">
        <? echo $page; ?>
    </a> |
  <? else: ?>
    <? echo $page; ?> |
  <? endif; ?>
<? endforeach; ?>

<!-- Next page link -->
<? if (isset($this->next)): ?>
  <a href="<?=$this->url(array('page' => $this->next)) . $queryString ?>">
    Next &gt;
  </a>
<? else: ?>
  <span class="disabled">Next &gt;</span>
<? endif; ?>
</div>
<? endif; ?>